package com.duda.service;

import com.duda.dao.DownFileUserMapper;
import com.duda.projo.DownFileUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.UUID;

@Service
public class DownFileUserServiceImpl implements DownFileUserService{
    @Resource
    DownFileUserMapper  downFileUserMapper;
    @Override
    public List<DownFileUser> getDownFileUser(String userId)
    {
        return downFileUserMapper.getUserFileUserById(userId);
    }

    @Override
    public List<DownFileUser> getDownFileUser(String userName, String passWord)
    {
        return downFileUserMapper.getUserFileUser(userName,passWord);
    }
    @Override
    public void deductUserIntegral(String userID)
    {
        downFileUserMapper.deductUserIntegral(userID);
    }
    @Override
    public void insertUser(UUID userID, String userName, String passWord, int integral, String createTime)
    {
        downFileUserMapper.insertUser(userID,userName,passWord,integral,createTime);
    }

}
